package com.service;

import java.util.List;

import com.dao.GoalDao;
import com.entity.Goal;

public class GoalService {

	GoalDao dao=new GoalDao();
	public List<Goal> getGoals(String pid,String eid) {
		return dao.getGoals(pid,eid);
	}
	public void addGoal(Goal goal) {
		dao.addGoal(goal);
	}
	public Goal getGoal(String id) {
		return dao.getGoal(id);
	}
	public void updateGoal(Goal goal) {
		dao.updateGoal(goal);
		
	}
	public List<Goal> getGoals(String id) {
		
		return dao.getGoals(id);
	}
	public List<Goal> getAllByPid(String id) {
		return dao.getAllByPid(id);
	}

}
